//
//  NIEShareView.h
//  CustomShareView
//
//  Created by Liuyong on 14-6-24.
//  Copyright (c) 2014年 FZCommon. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kMAX_CONTENT_HEIGHT 360
#define kEdgeMarginSpace 10
#define kMinimumInteritemSpacing 5
#define kUIViewAnimationTimeInterval 0.2


@interface FZShareView : UIView

@property (assign, nonatomic) BOOL cancelButtonHidden; //default is NO
@property (copy, nonatomic) void(^shareViewDidClickItemBlock)(FZShareView *shareView,NSInteger index);
@property (nonatomic, strong) UIView *contentView;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIView *lineView;
@property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) UIView *cancelSeparatorView;
@property (nonatomic, strong) UIButton *cancelButton;

@property (nonatomic, strong) NSArray *itemTitles;
@property (nonatomic, strong) NSArray *itemImages;
@property (nonatomic) NSInteger itemCount;
@property (nonatomic) NSInteger itemColumn;//列个数，默认四个


- (void)layoutCollectionView;

- (id)initWithTitle:(NSString *)title itemTitles:(NSArray *)itemTitles images:(NSArray *)images;
- (void)showInview:(UIView *)parentView;

@end
